import request from "@/utils/request";

export function bannerDel(data){     //删除banner
    return request({
        url : "/admin/banner/del",
        method : "post",
        data
    })
}

export function getBanner(){     //获取banner
    return request({
        url : "/admin/banner/list",
        method : "get",
    })
}

export function editBanner(data){
    return request({
        url : "/admin/banner/edit",
        method : "post",
        data
    })
}

export function bannerStatus(data){
    return request({
        url : "/admin/banner/status",
        method : "post",
        data
    })
}

export default {
    bannerDel,
    getBanner,
    editBanner,
    bannerStatus
}